package com.labraff.todo;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

public class task implements Serializable {
    private long id;
    private String title;
    private boolean checked;
    private String createTime;
    private boolean isUrgent;
    private String details;
    private String tags;
    private boolean isDone;


    public task(String title, boolean isUrgent, String details, String tags) {
        super();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM月dd日 HH:mm");
        Date date = new Date(System.currentTimeMillis());
        this.id = System.currentTimeMillis();
        this.title = title;
        this.checked = false;
        this.createTime = simpleDateFormat.format(date);
        this.isUrgent = isUrgent;
        this.details = details;
        this.tags = tags;
        this.isDone = false;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean getChecked() {
        return checked;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateTime() {
        return createTime;
    }


    public void setIsUrgent(boolean isUrgent) {
        this.isUrgent = isUrgent;
    }

    public boolean getIsUrgent() {
        return isUrgent;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getDetails() {
        return details;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getTags() {
        return tags;
    }

    public void setIsDone(Boolean isDone) {
        this.isDone = isDone;
    }

    public Boolean getIsDone() {
        return this.isDone;
    }

}


